package com.quanyan.common.vo;

import com.quanyan.common.constants.Constants;

import java.io.Serializable;

/**
 * @Author Hugo.Wwg
 * @Since 2016-06-08
 */
public class BaseRequest implements Serializable {

    private static final long serialVersionUID = 1L;


    private Integer pageNum = 1;  //当前页

    private Integer pageSize = Constants.DEFAULT_PAGE_SIZE; //每页条数


    public Integer getPageNum() {
        return pageNum;
    }

    public void getPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum == null ? Constants.DEFAULT_PAGE_INDEX : pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize == null ? Constants.DEFAULT_PAGE_SIZE : pageSize;
    }
}